package com.example.yunpicture.controller;

import com.example.yunpicture.common.BaseResponse;
import com.example.yunpicture.common.ResultUtils;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class MainController {

    //健康检查
    @GetMapping("/health")
    //@ApiOperation("健康检查")
    public BaseResponse<String> health(){
        return ResultUtils.success("ok");
    }
}
